//2009/08/10 00:52:01
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>

using namespace std;

class CrossWord
{
public:
    int countWords(vector <string> board, int size)
    {
        int count = 0;
        for (int i=0; i<board.size(); i++)
        {
            int score = 0;
            string s(board[i] + 'X'); // This will supply the judge to the last one.
            for (int j=0; j<s.size(); j++)
            {
                if (s[j] == '.') score ++;
                else
                {
                    if (score == size) count ++;
                    score = 0;
                }
            }
        }
        return count;
    }
};
